package com.bgs.engineering.api.file.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("files_and_modules")
public class FilesAndModules {
  /**
   * id
   */
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  /**
   * 模块名
   */
  private String model;
  /**
   * 文件id
   */
  private Integer fileId;
  /**
   * 模块下的表id
   */
  private Integer tableId;
  /**
   * 创建时间
   */
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;

  /**
   * 更新时间
   */
  @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;

}
